package com.spring.hx.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.spring.hx.entity.BonusLog;
import com.spring.hx.util.Result;
import org.springframework.stereotype.Service;

import com.spring.hx.entity.User;
import com.spring.hx.mapper.UserMapper;
import com.spring.hx.service.UserService;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService{
	
	private UserMapper userMapper;

	@Resource
	public void setUserMapper(UserMapper userMapper) {
		this.userMapper = userMapper;
	}

	@Override
	public User getById(Long id) {
		
		return userMapper.getById(id);
	}

	@Override
	public BonusLog bonus() {
		return null;
	}

	@Override
	public JSONObject login(String wxNickname, String tel, String pwd) {
//		return userMapper.getByPwd(wxNickname,pwd);
		return null;
	}


}
